package xyz.showbooks.config;

import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;

import java.io.IOException;
import java.io.InputStream;

/**
 * @author: Dsi
 * @date: 2022/2/12 15:07
 * @description: 测试自动生成三大结构层（失败）
 */
//@Configuration
public class MybatisConfig {
//    @Bean
    public void mybatisPlusConfig() throws IOException {
        String resource = "mybatis-config.xml";
        InputStream inputStream = Resources.getResourceAsStream(resource);
        SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
    }
}
